package com.test.rxjavademo;

import java.util.ArrayList;
import java.util.List;

class Student {

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", courses=" + courses +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public String name;

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    List<Course> courses;

    public List<Course> getCourseList() {
        return courses;
    }


    static class Course{
        public String cname;

        public String getCname() {
            return cname;
        }

        public void setCname(String cname) {
            this.cname = cname;
        }

        @Override
        public String toString() {
            return "Course{" +
                    "cname='" + cname + '\'' +
                    '}';
        }
    }

}
